package offer.of05;

public class Solution {
    public String replaceSpace(String s) {
        StringBuilder sb=new StringBuilder();
        for (int i=0;i<s.length();i++){
            char c=s.charAt(i);
            if (c!=' '){
                sb.append(c);
            }else {
                sb.append("%20");
            }
        }
        return sb.toString();
    }
}
